package com.ac.model;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;

import com.ac.util.TreeUtil;

import lombok.Getter;
import lombok.Setter;

@Document(collection = "auth_user")
@Getter
@Setter
public class AuthUser extends TreeModelBase {

	String name;

	boolean status;

	String phone;

	String account;

	String password;

	String desc;

	Long birthday;

	boolean birthdayType;

	List<String> roleList;

	@Override
	public void insert() {
		TreeUtil.setRootPath(this, AuthUser.class);
		super.insert();
	}

	@Override
	public void update() {
		TreeUtil.setRootPath(this, AuthUser.class);
		super.update();
	}

}
